import { S } from '../../s';
import { IPSDETreeStaticNode } from './ipsdetree-static-node';
import { PSDETreeNodeImplBase } from './psdetree-node-impl-base';
import { IPSLanguageRes } from '../../res/ipslanguage-res';

export class PSDETreeStaticNodeImpl
  extends PSDETreeNodeImplBase
  implements IPSDETreeStaticNode
{
  get nodeValue(): string {
    return this.M.nodeValue;
  }

  get text(): string {
    return this.M.text;
  }

  get tooltip(): string {
    return this.M.tooltip;
  }

  protected tooltippslanguageres: IPSLanguageRes;
  getTooltipPSLanguageRes(): IPSLanguageRes | null {
    return (
      this.tooltippslanguageres ||
      (this.tooltippslanguageres = this.fillObjectModel(
        S._276,
        this.M.getTooltipPSLanguageRes,
        S._2c5,
      ) as IPSLanguageRes)
    );
  }
  get cls(): string {
    return 'PSDETreeStaticNodeImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1bc) return true;
    return super.instanceof(cls);
  }
}
